package com.shop.cereshop.app.dao.distributor;

import com.shop.cereshop.app.dl.logic.domain.CereShopCommissionRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CereShopCommissionRecordDao {
    int deleteByPrimaryKey(Long commissionRecordId);

    int insert(CereShopCommissionRecord record);

    int insertSelective(CereShopCommissionRecord record);

    CereShopCommissionRecord selectByPrimaryKey(Long commissionRecordId);

    int updateByPrimaryKeySelective(CereShopCommissionRecord record);

    int updateByPrimaryKey(CereShopCommissionRecord record);

    List<CereShopCommissionRecord> selectBydistributorId(@Param("distributorId") Long distributorId);
}